package com.shangguan.springmvc.core;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: RootConfig
 * @Description:  spring-core.xml
 * @Author: 一尘
 * @Date: 2020 年 04 月 22 14:28
 * @Version 1.0
 */
@Configuration
@ComponentScan
public class RootConfig {
    /*数据源*/
    /*sqlSessionFactory*/
    @Bean(name = "studentServer")   // 起别名
    public StudentServiceImpl  studentService(){
        return  new StudentServiceImpl();
    }
}
